package com.example.webdownloadserver.base;

public class TaskJobException extends RuntimeException {
	
	private static final long serialVersionUID = -8367672665555293130L;
	
	private String errorCode;

    public TaskJobException(String message){
        super(message);
    }

    public TaskJobException(String errorCode, String message){
    	super(message);
    	this.setErrorCode(errorCode);
    }

    public TaskJobException(String errorCode, String message, Throwable cause){
    	super(message, cause);
    	this.setErrorCode(errorCode);
    }


    public TaskJobException(String message, Throwable cause){
        super(message, cause);
    }
    
    public String getErrorCode(){
        return errorCode;
    }

    public void setErrorCode(String errorCode){
        this.errorCode = errorCode;
    }

}

